const express = require('express');
const path = require('path');
const app = express();
//app.use(express.static(path.join(__dirname,'public')));

app.get('/',(req,res)=>{
    res.send('ok');
});
app.get('/home',(req,res)=>{
    //res.redirect('/');
    res.setHeader('Location','/');
    res.statusCode = 302;
    res.end();
});
app.listen(3000, () => console.log('server started on 3000'));